import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {BrowserRouter as Router, Route} from "react-router-dom"
import store from "./store/data"
import App from "./view/App"
import TenDati from "./view/Dati"
import './css/style.css'
import 'antd-mobile/dist/antd-mobile.css';
/**
 * 第一步
 */

  
  //Provide是将数据仓库的store传进去，并进行刷新
  ReactDOM.render(
      <Provider store={store}>
          <Router>
              <Route path="/" exact component={App}></Route>
              <Route path="/dati" component={TenDati}></Route>
          </Router>
      </Provider>
        ,
    document.getElementById('root')
  );
  